﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Data
{
    public class SanPham
    {
        
        public long Id { get; set; }
        public string Ten { get; set; }
        public string Anh { get; set; }
        public long Gia { get; set; }
        public long SoLuong { get; set; }
        public long IdLoai { get; set; }
        public List<SanPhamAnhCT> lstAnh { get; set; }
        public List<SanPhamNoiDungCT> lstNoiDung { get; set; }
        public string Cl { get; set; }
        public int SoLuongMua { get; set; }
        public long TongSoTien { get; set; }
    }
    public class SanPhamAnhCT
    {
        public long IdChiTiet { get; set; }
        public long IdSanPham { get; set; }
        public string LinkAnh { get; set; }
        public int Loai { get; set; }
    }
    public class SanPhamNoiDungCT
    {
        public long IdChiTiet { get; set; }
        public long IdSanPham { get; set; }
        public string NoiDung { get; set; }
        public int Loai { get; set; }
    }

    public class LoaiSanPham
    {
        public long Id { get; set; }
        public string Ten { get; set; }
        public int TrangThai { get; set; }
        public long SoLuongSP { get; set; }
        public List<SanPham> lstSanPham { get; set; }
    }
}
